package com.study.common;

public enum  ErrorCode {

    NAME_NOT_BE_NULL("name_not_be_null","姓名不能为空"),
    MOBILE_NOT_BE_NULL("mobile_not_be_null","手机号不能为空"),
    MOBILE_IS_EXIT("mobile_is_exit","手机号已经被注册过"),
    USERNAME_NOT_BE_NULL("username_not_be_null","用户名不能为空"),
    USERNAME_IS_EXIT("username_is_exit","用户名已存在"),
    PASSWORD_NOT_BE_NULL("password_not_be_null","密码不能为空"),
    SIGN_FAIL("sign_fail","注册失败"),
    LOGIN_FAIL("login_fail","登陆失败，用户名或密码错误"),
    PARAM_IS_ERROR("param_is_error","参数错误"),
    FAIL_CODE("fail_code","操作失败"),
    IS_NOT_ALLOW_SIGN("is_not_allow_sign","很抱歉，现在已经不在允许注册")
    ;


    private String code;
    private String message;

    ErrorCode(String code, String message) {
        this.code = code;
        this.message = message;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
